package com.espirit.eap.manager;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.googlecode.cswish.annotation.Rest;
import com.googlecode.cswish.oosearch.QLInfo;
import com.googlecode.cswish.struts.spring.GenericService;

@Service
public class WorkGroupService {
	@Resource
	GenericService genericService;
	
	@Rest(simpleServiceName="loginUser", type="free")
	public List<WorkGroup> getAllData(){
		String hql = "from " + WorkGroup.class.getName() + " a ";
		return genericService.searchByQl(new QLInfo(hql, false)).getData();
	}
}
